import unittest
from MaxArrayNum import MaxNum


class MaxArrayNumTest(unittest.TestCase):
    def test_maxNum(self):
        self.assertEqual(MaxNum([1,-5,20,-9,3,-2]),20)

    def test_Positive(self):
        self.assertEqual(MaxNum([1,2,3,4]),10)

    def test_Minus(self):
        self.assertEqual(MaxNum([-1,-2,-3,-4]),-1)


if __name__ == '__main__':
    unittest.main()
